<?php
namespace Home\Controller;
use Think\Controller;
class CodeController extends Controller{
  public function VerifyCode(){
    $config =    array(
      'fontSize'    =>    200,    // 验证码字体大小
      'length'      =>    4,     // 验证码位数
      'useNoise'    =>    false, // 关闭验证码杂点
      'useCurve'    =>    false,
      'codeSet'     => '012345689',
      'fontttf'     => '4.ttf'
    );
    $code = new \Think\Verify($config);
    $code->entry(1);
    $code->entry(2);
  }
}
